package ModelLayer;
import java.util.Date;

public abstract class Payment
{
    protected  int saleID;
    protected  Date date;
    protected  double amount;

    public Payment(int sID, double amount)
    {
        this.date = new Date();
        this.saleID = sID;
        this.amount = amount;
    }

    public Date getDate() 
    {
        return date;
    }

    public int getSaleID()
    {
        return saleID;
    }
    
    public double getAmount() { return amount; }
    
    public abstract double getChange(double totalPrice);
}

